<?php

// 自动加载
// spl_autoload_register(function ($class) {
//     $file = str_replace('\\', '/', $class) . '.php';
//     include $file;
// });


class Bootstrap
{
    public static function boot()
    {
        spl_autoload_register([new self, 'autoload']);
    }

    public function autoload($class)
    {
        $file = str_replace('\\', '/', $class) . '.php';
        include $file;
    }
}

// 运行
Bootstrap::boot();

